<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" style="overflow: hidden">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>${Title}</title>
<link rel="shortcut icon" href="${res}favicon.ico" type="image/x-icon" />
 <!--Basic Styles-->
<link href="../framework/css/font.css" rel="stylesheet" />
<link href="../framework/miniui/themes/material/miniui.css" rel="stylesheet" />
<link href="../framework/css/app.min.1.css" rel="stylesheet" type="text/css" />
<link href="../framework/css/app.min.2.css" rel="stylesheet" type="text/css" />
<script src="../framework/main.js" type="text/javascript"></script>
<style type="text/css">
    html, body{
        margin:0;padding:0;border:0;width:100%;height:100%;overflow:hidden;
    }    
    </style>
</head> 
<body class="body-detail">
	<script>
		Page.onLoad(function(){
			mini.get('dg1').load();	
		});
		function doSearch(){
			 var obj = mini.get("ProjectType");
			// obj.getValue() +":"+ obj.getText()
			var dc={
				CompanyInfo:$V('CompanyInfo'),
				ProjectName:$V('ProjectName'),
				StartTime:mini.get("StartTime").getFormValue(),
				EndTime:mini.get("EndTime").getFormValue(),
				ProjectType:obj.value
			}
			
		/* 	var json = mini.encode(dc);
			console.log(json); */
			mini.get("dg1").load(dc);	
			}

        function onCloseClick(e) {
            var obj = e.sender;
            obj.setText("");
            obj.setValue("");
        }
	</script> 
	<div class="mini-fit" style="padding:0 10px 10px 10px;">
	<div class="search-area">
		 <div class="pull-right">
			<input class="mini-textbox" id="CompanyInfo" type="text" emptyText="请输入一级账号或账号名称"/>
			<input class="mini-textbox" id="ProjectName" type="text" emptyText="请输入项目名称"/>
			<input id="StartTime" class="mini-datepicker" value="" allowInput="false"  emptyText="创建日期止起" format="yyyy-MM-dd"/>
			<input id="EndTime" class="mini-datepicker" value="" allowInput="false"  emptyText="创建日期止" format="yyyy-MM-dd"/>
			<div id="ProjectType" class="mini-combobox" style="width:250px;"  popupWidth="400" textField="text" valueField="id" value = ""
			    multiSelect="true"  showClose="true" oncloseclick="onCloseClick" data="[
			{id:'1',text:'创建项目'},
			{id:'2',text:'资料收集'},
			{id:'3',text:'现场踏勘'},
			{id:'4',text:'环境质量及检测'},
			{id:'5',text:'报告编制及审核'},
			{id:'6',text:'分公司一审'},
			{id:'7',text:'分公司二审'},
			{id:'8',text:'初审'},
			{id:'9',text:'复审'},
			{id:'10',text:'终审'},
			{id:'11',text:'报告送审'},
			{id:'12',text:'技术评估'},
			{id:'13',text:'报告报批'},
			{id:'14',text:'报告公示'},
			{id:'15',text:'报告存档'},
			{id:'16',text:'已入库'}
			]">     
		    <div property="columns">
		       
			</div>
</div>
			
		 	<button class="btn btn-default" id="Submitbutton" onClick="doSearch()"><i class="iconfont icon-search"></i></button>
		 </div>
	</div>
		<div id="dg1" class="mini-datagrid z-depth-1" style="width:100%;height:100%;" method="NewAccountNumber.findWithTime" idField="Member" multiSelect="true">
		    <div property="columns">
		       	<div type="indexcolumn"></div>
		       	<div field="CompanyMobile"width="7%">所属一级账号</div>
		        <div field="CompanyName" width="10%">一级机构账号名称</div>
		        <div field="Mobile" width="7%">创建人账号</div>
		        <div field="RealName" width="5%">创建人姓名</div>
	            <div field="ProjectName" width="10%">项目名称</div>
	            <div field="ReportType" width="8%">报告类型</div>
	             <div field="PerjectType" width="8%">项目状态</div>
	            <div field="PerjectTime" width="100" dateFormat="yyyy-MM-dd hh:mm:ss" allowSort="true" headerAlign="center" align="center">创建日期</div>
	             <div field="EntTime" width="100" dateFormat="yyyy-MM-dd hh:mm:ss" headerAlign="center" align="center">入库日期</div>
		    </div>
		</div>
	</div>
</body>
</html>